home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncsa.uiuc.edu / ftp.ncsa.uiuc.edu.zip / ftp.ncsa.uiuc.edu / DataScope / DataScope2.0.3.sit.hqx / DataScope2.0.3.rsrc / HTXT_10_.....Notebook Calculation Format_ < prev    next >
Text File  |  1993-11-02  |  892b  |  28 lines

  1. 
  2. To execute analytic equations enter a FORTRAN-like
  3. assignment statement consisting of DataScope 
  4. datasets (always referred to by their window
  5. titles), mathematical operators (+,-,*, and /),
  6. parentheses to group the variables, constants
  7. (in a form that would acceptable to FORTRAN,
  8. like e-format or integer), and DataScope
  9. functions.
  10. 
  11. For example, suppose MYDATA is a dataset.  Then
  12. executing the equation 
  13. 
  14.      NEW = 3.2 * (sin(MYDATA) + 1.e-3) + 15
  15. 
  16. will create a new dataset, where the elements
  17. have the values
  18. 
  19.      new(i,j) = 3.2 * (sin(mydata(i,j)) + 1.e-3) + 15
  20. 
  21. for every pair (i,j) in the data.  It is important to
  22. remember that operations on 2D arrays are on an
  23. element-by-element basis, and are not matrix
  24. operations (though users are free to write such
  25. matrix operations into subroutines that can be 
  26. called via DataScope's external library feature).
  27. 
  28.